furny.ga.logger.entities
Class IndividualEntry

java.lang.Object
  extended by furny.ga.logger.entities.IndividualEntry

@Entity
public class IndividualEntry
extends java.lang.Object

Database entry for an individual.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
private  LogEvent event
          The event.
private  java.lang.Double fitness
          The fitness.
private  int generation
          The generation.
private  java.util.Set<GeneEntry> genes
          The genes.
private  long id
          The id.
 
Constructor Summary
private IndividualEntry()
          Instantiates a new individual entry.
  IndividualEntry(int generation, LogEvent event, java.util.Collection<GeneEntry> c, java.lang.Double fitness)
          Instantiates a new individual entry.
 
Method Summary
 LogEvent getEvent()
          Gets the event.
 java.lang.Double getFitness()
          Gets the fitness.
 int getGeneration()
          Gets the generation.
 java.util.Set<GeneEntry> getGenes()
          Gets the genes.
 long getId()
          Gets the id.
 void setEvent(LogEvent event)
          Sets the event.
 void setFitness(java.lang.Double fitness)
          Sets the fitness.
 void setGeneration(int generation)
          Sets the generation.
 void setGenes(java.util.Set<GeneEntry> genes)
          Sets the genes.
private  void setId(long id)
          Sets the id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id
The id.


event

private LogEvent event
The event.


generation

private int generation
The generation.


genes

private java.util.Set<GeneEntry> genes
The genes.


fitness

private java.lang.Double fitness
The fitness.

Constructor Detail

IndividualEntry

private IndividualEntry()
Instantiates a new individual entry.


IndividualEntry

public IndividualEntry(int generation,
                       LogEvent event,
                       java.util.Collection<GeneEntry> c,
                       java.lang.Double fitness)
Instantiates a new individual entry.

Parameters:
generation - the generation
event - the event
c - the c
fitness - the fitness
Method Detail

getId

public long getId()
Gets the id.

Returns:
the id

setId

private void setId(long id)
Sets the id.

Parameters:
id - the new id

getGeneration

public int getGeneration()
Gets the generation.

Returns:
the generation

setGeneration

public void setGeneration(int generation)
Sets the generation.

Parameters:
generation - the new generation

getEvent

public LogEvent getEvent()
Gets the event.

Returns:
the event

setEvent

public void setEvent(LogEvent event)
Sets the event.

Parameters:
event - the new event

getGenes

public java.util.Set<GeneEntry> getGenes()
Gets the genes.

Returns:
the genes

setGenes

public void setGenes(java.util.Set<GeneEntry> genes)
Sets the genes.

Parameters:
genes - the new genes

getFitness

public java.lang.Double getFitness()
Gets the fitness.

Returns:
the fitness

setFitness

public void setFitness(java.lang.Double fitness)
Sets the fitness.

Parameters:
fitness - the new fitness